home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / comm / spar372.zip / SPAR_DEV.I < prev    next >
Text File  |  1993-12-10  |  897b  |  55 lines

  1. **
  2. ** $Source: dh1:network/parnet/Sana2/Sources/Spar_device.i,v $
  3. ** $State: Exp $
  4. ** $Revision: 37.1 $
  5. ** $Date: 93/08/24 20:41:45 $
  6. ** $Author: sap $
  7. **
  8. ** SANA-II Example device driver assembly include file
  9. **
  10. ** Portions (C) Copyright 1992 Commodore-Amiga, Inc.
  11. **
  12.  
  13.     include "exec/types.i"
  14.     include "exec/devices.i"
  15.     include "exec/ports.i"
  16.     include "exec/semaphores.i"
  17.  
  18.  
  19. **
  20. ** SPAR Driver Device Base definition
  21. **
  22.  
  23. SD_MAXUNITS    EQU    8
  24.  
  25.  STRUCTURE SPARDev,LIB_SIZE
  26.     UBYTE   sd_Flags
  27.     UBYTE   sd_Pad1
  28.     ULONG   sd_SysLib
  29.     ULONG   sd_DosLib
  30.     STRUCT  sd_DosTag,10*4
  31.     ULONG   sd_SegList
  32.     STRUCT  sd_Units,SD_MAXUNITS*4
  33.     STRUCT  sd_Lock,SS_SIZE
  34.     STRUCT  sd_Startup,MN_SIZE+8
  35.  
  36.     LABEL SPARDev_Sizeof
  37.  
  38. **
  39. ** Device Name Macro
  40. **
  41.  
  42. SPARDEVNAME    MACRO
  43.         DC.B    'spar.device',0
  44.         ENDM
  45.  
  46. **
  47. ** Handy system call macro
  48. **
  49.  
  50. jsrlib    MACRO
  51.     XREF    _LVO\1
  52.     jsr    _LVO\1(a6)
  53.     ENDM
  54.  
  55.